package com.equipment.management.service.impl;


import com.equipment.management.dao.TaskDao;
import com.equipment.management.entity.Mainframe;
import com.equipment.management.service.TaskService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 * @version 1.0 created by Carol on 2018/8/21 14:44
 */
@Service
public class TaskServiceImpl implements TaskService {
    private static final Logger LOGGER = LoggerFactory.getLogger(TaskServiceImpl.class);

    @Autowired
    TaskDao taskDao;


    public List<Mainframe> queryScheduledTask() {
        try {
            List<Mainframe> res = taskDao.queryScheduledTask();
            return res;
        } catch (Exception e) {
            LOGGER.info(e.toString());
        }
        return null;
    }
}